import http from '@/utils/request.ts'
import type {UserInfo} from "@/api/login/types.ts";


export const getHomeData = () => http.get<any,any>('/api/getHomeData')


//获取登录用户的信息
export const getLoginData = (data:UserInfo) => http.post<any,any>('/api/login',data)


export const handleLogout = () => http.post<any,any>('/api/logout')


